//
//  YMHomeService.h
//  YMMedical
//
//  Created by y s on 2023/7/5.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface YMHomeService : NSObject

//上报异常接口
+ (void)appOperateReportExWithExCondition:(NSString *)exCondition
                                imageFile:(NSString *)imageFile
                                 fileSize:(NSString *)fileSize
                                   tcTime:(NSInteger)tcTime
                               uploadTime:(NSInteger)uploadTime
                                  success:(void(^)(void))success
                                  failure:(void(^)(NSString *message))failure;

/** segement 类型 */
+ (void)requestHomeSegementDataWithSuccess:(void(^)(NSArray *arrData))success
                                   failure:(void(^)(NSString *message))failure;
/** banner 接口 */
+ (void)requestHomeItemInforWithSegementID:(NSString *)segementId
                                   success:(void(^)(NSArray *arrData))success
                                   failure:(void(^)(NSString *message))failure;
/** 引导图 */
+ (void)requestAppGuideDataSuccess:(void(^)(NSArray *arrData,NSString *idStr))success
                           failure:(void(^)(NSString *message))failure;
/** 操作视频 */
+ (void)requestHomeOperationVideoListData:(NSString *)idStr
                                   pageNo:(NSInteger)pageNo
                                  success:(void(^)(NSArray *arrData))success
                                  failure:(void(^)(NSString *message))failure;
/** 查询账号 是否添加了设备 */
+ (void)requestHomeHadAddDeviceDataSuccess:(void(^)(BOOL hadDevice,NSArray *arrDevice))success
                                   failure:(void(^)(NSString *message))failure;
/** 效验该设备是否已添加 */
+ (void)requestHomeCheckHadDeviceDataWithSN:(NSString *)snCode
                                    success:(void(^)(BOOL hadDevice))success
                                    failure:(void(^)(NSString *message))failure;
/** 查询 设备是否存在 */
+ (void)requestHomeDeviceIsTrueDataWithSn:(NSString *)snCode
                                  success:(void(^)(BOOL isTrue,NSDictionary *dictInfor))success
                                  failure:(void(^)(NSString *message))failure;
/** 添加 新设备 */
+ (void)requestHomeAddNewDeviceDataWithInfor:(NSDictionary *)dictInfor
                                     success:(void(^)(NSDictionary *dictInfor))success
                                     failure:(void(^)(NSString *message))failure;
/** 最近一次检测记录接口 */
+ (void)requestLatelyHealthRecordDetailsDetectionUserId:(NSString *)detectionUserId
                                            minorTermId:(NSString *)minorTermId
                                                success:(void(^)(NSDictionary *dictData))success
                                                failure:(void(^)(NSString *message))failure;

/** 健康档案根据账号获取被检测人和检测项目 */
+ (void)requestHomeHealthGetUsersAndItemsSuccess:(void(^)(NSArray *arrUser, NSArray *arrItem))success
                                         failure:(void(^)(NSString *message))failure;
/** 删除健康档案接口 */
+ (void)requestHomeDeleteHealthReportWithId:(NSString *)idStr
                                    success:(void(^)(void))success
                                    failure:(void(^)(NSString *message))failure;
/** 健康档案日历 */
+ (void)requestHomeGetHealthCalendarRecordDetails:(NSString *)detectionUserId
                                      minorTermId:(NSString *)minorTermId
                                 collectStartDate:(NSString *)collectStartDate
                                   collectEndDate:(NSString *)collectEndDate
                                          success:(void(^)(NSArray *arrItem))success
                                          failure:(void(^)(NSString *message))failure;
/** 健康档案详情 */
+ (void)requestHealthGetOneHealthRecordDetails:(NSString *)detectionId
                                       success:(void(^)(NSDictionary *dictData))success
                                       failure:(void(^)(NSString *message))failure;

/** 获取当前用户和被测人的近期检测项目，小类ID,大类ID */
+ (void)requestHomegetOneMinorTermDetails:(NSString *)detectionId
                                  success:(void(^)(NSDictionary *dictData))success
                                  failure:(void(^)(NSString *message))failure;

@end

NS_ASSUME_NONNULL_END
